-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial nnx port #3
Conversation
tests/test_math.py
Outdated
from jflux.math import attention, rope, apply_rope | ||
|
||
|
||
@pytest.mark.xfail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ariG23498 I've temporarily added this because the tests are failing. Might be because I'm running on a non GPU machine (M1 macbook)
expected_shape = (self.batch_size, self.seq_len, self.dim // 2, 2, 2) | ||
|
||
self.assertEqual( | ||
rope_output.shape, expected_shape, "rope function output shape is incorrect" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think we should use chex
assertions, viz. https://github.com/google-deepmind/chex?tab=readme-ov-file#assertions-assertspy
Merging this and working on a different branch for the later updates! |
Fixes #2